#!/usr/bin/python
# -*- coding : UTF-8 -*-
# ========================
# @Time  : 2020/5/7 17:08
# @Author: Mecell
# @File  : path_constants.py
# ========================

import os


BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

"""一级目录"""
COMMON_DIR = os.path.join(BASE_DIR, "common")
CONFIG_DIR = os.path.join(BASE_DIR, "config")
DATA_DIR = os.path.join(BASE_DIR, "data")
LOG_DIR = os.path.join(BASE_DIR, "log")
REPORT_DIR = os.path.join(BASE_DIR, "report")
PARAMETER_DIR = os.path.join(BASE_DIR,"parameterize")
MATERIAL_DIR = os.path.join(BASE_DIR, "material")

"""二级目录"""
EMP_MANAGE_DIR = os.path.join(DATA_DIR, "employee_manage")
ASSET_MANAGE_DIR = os.path.join(DATA_DIR, "asset_manage")
OPINION_MANAGE_DIR = os.path.join(DATA_DIR,"opinion_manage")
ATTENDANCE_DIR = os.path.join(DATA_DIR,"attendance")
TRAINING_MANAGE_DIR = os.path.join(DATA_DIR,"training_manage")


ALLURE_RAW = os.path.join(REPORT_DIR, "allure_raw")
MATCH_PATTERN_DIR = os.path.join(CONFIG_DIR, "match_pattern")
QUERY_SQL_DIR = os.path.join(CONFIG_DIR, "query_sql")

"""三级目录"""
ATTENDANCE_MANAGE_DIR = os.path.join(ATTENDANCE_DIR,"attendance_manage")

"""配置文件"""
BASIC_INFO_CONF = os.path.join(CONFIG_DIR, "basic_info.ini")
QUERY_SQL_CONF = os.path.join(CONFIG_DIR, "query_sql.ini")
USER_ACCOUNT_CONF = os.path.join(CONFIG_DIR, 'user_account.ini')
RE_CONF = os.path.join(CONFIG_DIR, 're_pattern.ini')
TRAINING_SQL_CONF = os.path.join(QUERY_SQL_DIR, 'training_sql.ini')
TRAINING_PATTERN_CONF = os.path.join(MATCH_PATTERN_DIR, 'training_pattern.ini')
ASSET_PATTERN_CONF = os.path.join(MATCH_PATTERN_DIR, 'assets_pattern.ini')
ATTENDANCE_SQL_CONF = os.path.join(QUERY_SQL_DIR,'attendance_sql.ini')
ATTENDANCE_PATTERN_CONF = os.path.join(MATCH_PATTERN_DIR,'attendance_pattern.ini')
OPINION_SQL_CONF = os.path.join(QUERY_SQL_DIR,'opinion_sql.ini')
OPINION_PATTERN_CONF = os.path.join(MATCH_PATTERN_DIR,'opinion_pattern.ini')

"""材料目录"""
PICTURE_DIR = os.path.join(MATERIAL_DIR, "picture")
VIDEO_DIR = os.path.join(MATERIAL_DIR, "video")
IMPORT_DIR = os.path.join(MATERIAL_DIR, "import")
EXPORT_DIR = os.path.join(MATERIAL_DIR, "export")
DOCUMENT_DIR = os.path.join(MATERIAL_DIR, "document")

"""导入文件模块目录"""
ASSET_IMP = os.path.join(IMPORT_DIR, "asset_manage")
DORM_IMP = os.path.join(IMPORT_DIR, "dorm_manage")
TRAINING_IMP = os.path.join(IMPORT_DIR, "training_manage")
REPAIR_IMP = os.path.join(IMPORT_DIR, "repair_manage")
COMPANY_IMP = os.path.join(IMPORT_DIR,"financial_data","company_data")
RENT_IMP = os.path.join(IMPORT_DIR,"financial_data","rent_data")
TRADEMARK_REGISTER_IMP = os.path.join(IMPORT_DIR,"trademark_register_data")
TRAINEE_IMP = os.path.join(IMPORT_DIR, "trainee_manage")

"""测试数据文件"""
DEMO_EXCEL = os.path.join(DATA_DIR, "testcases.xlsx")
LOGIN_YAML = os.path.join(DATA_DIR, "login.yaml")
EMP_INFO_YAML = os.path.join(EMP_MANAGE_DIR, "emp_info.yaml")
ASSET_MANAGE_YAML = os.path.join(ASSET_MANAGE_DIR, "asset_manage.yaml")
ASSET_CHANGE_YAML = os.path.join(ASSET_MANAGE_DIR, "asset_change.yaml")
OPINION_YAML = os.path.join(OPINION_MANAGE_DIR,"opinion.yaml")
APPLICATION_RECORD_YAML = os.path.join(ATTENDANCE_MANAGE_DIR,"application_record.yaml")

COMPANY_TRAINING_YAML = os.path.join(TRAINING_MANAGE_DIR, "company_training.yaml")
DEPARTMENT_TRAINING_YAML = os.path.join(TRAINING_MANAGE_DIR, "department_training.yaml")



if __name__ == '__main__':
    print(os.path.join(PICTURE_DIR,'black.jpg'))


